import requestsso from '@/network/service_model.js'
import request from '@/network/auth_sso.js'
export default {

    //role列表信息
    getRoleList(pageNum,pageSize,search){
        return request({
            url: '/order/role/selectRoleList',
            method:'get',
            params: {pageNum,pageSize,search}
        })
    },

    //新增role数据
    saveRole(role){
        return request({
            url: '/order/role/saveRole',
            method: 'post',
            data: role
        })
    },

    //修改role数据
    updateRole(role){
        return request({
            url: '/order/role/updateRole',
            method:'put',
            data:role
        })
    },

    //删除role数据
    deleteRole(id){
        return request({
            url: '/order/role/deleteRole',
            method:'delete',
            params:{id}
        })
    },

    //修改role数据
    changePermission(role){
        return request({
            url: '/order/role/changePermission',
            method:'put',
            data:role
        })
    },

}